<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /*
        所有对象都是有原型链的，原型链的终点是null
      */
      // Object.prototype = {
      //   __proto__: null,
      // };
      // Array.prototype = {
      //   __proto__: Object.prototype,
      // };
      // arr = {
      //   __proto__: Array.prototype,
      // };
      const arr = []; // new Array();
      console.log(arr.__proto__ === Array.prototype);
      console.log(Array.prototype.__proto__ === Object.prototype);
    </script>
  </body>
</html>
